package com.binfast.service.dao.auth;

import com.binfast.bean.model.auth.AdminUserRole;
import com.binfast.seed.config.BaseDao;
import org.beetl.sql.core.annotatoin.SqlResource;

import java.util.List;

@SqlResource("auth.adminUserRole")
public interface AdminUserRoleDao extends BaseDao<AdminUserRole> {

    List<Long> findRoleIdByUserIdAndUndeleted(Long userId);

    List<AdminUserRole> findByUserIdAndUndeleted(Long userId);

    Integer deleteByUserId(Long userId, Long adminUserId);
}
